﻿using System.ComponentModel.DataAnnotations;

namespace AppManager.DomainModel
{
    public class Sys_UserEidtModel
    {
        public int Id { get; set; }

        [Required]
        public string LoginName { get; set; }

        [Required]
        public string LoginPwd { get; set; }

        /// <summary>
        ///     使用Compare對比兩個屬性的值
        /// </summary>
        [Required]
        [Compare("LoginPwd", ErrorMessage = "密碼不匹配")] //对比验证
        public string LoginPwd2 { get; set; }

        [Required]
        public string Name { get; set; }
    }
}